/*
 * httpresponse.h
 *
 *  Created on: Apr 14, 2009
 *      Author: kuncai
 */

#ifndef HTTPRESPONSE_H_
#define HTTPRESPONSE_H_
#include <string>
using namespace std;
#include "httpmsg.h"
#include <strings.h>
class HttpResponse: public HttpMsg {
public:
	HttpResponse();
	HttpResponse(string msg);
	~HttpResponse();

	Buffer ToBuffer();
	string sStatus, sVersion, sReason;
	string GetStatus();
	int SetStatus(string status);
	string GetVersion();
	int SetVersion(string version);
	string GetReason();
	int SetReason(string reason);
private:
	void Formate(string str);
};
#endif /* HTTPREQUEST_H_ */
